/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class TowelRack {
    static categoryCode = '010060008';

    static categoryName = '毛巾架';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return TowelRack.categoryCode;
    }

    get categoryName() {
        return TowelRack.categoryName;
    }

    getEco(params) {
        return command({
            method: 'getEco',
            methodId: 'p1vZOVXw',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getLevel(params) {
        return command({
            method: 'getLevel',
            methodId: 'ptRSe8Zr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'phEqB22A',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pgh07JuC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTemp(params) {
        return command({
            method: 'getTemp',
            methodId: 'pDrhtTQU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTempCurrent(params) {
        return command({
            method: 'getTempCurrent',
            methodId: 'pdN7Wcwd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setEco(params) {
        return command({
            method: 'setEco',
            methodId: 'peH39rAK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setLevel(params) {
        return command({
            method: 'setLevel',
            methodId: 'pGoxGSyP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pZgRqL1m',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQoZE5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTemp(params) {
        return command({
            method: 'setTemp',
            methodId: 'ppAXzd5l',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default TowelRack;
